<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\SPictureInfo as PictureModel;

class PictureController extends BaseController
{
    //获取图片
    public function getPicture()
    {
    	$pic_type = request("picType", 0);

    	if($pic_type == 0) {
    		$num = 3;
    	} else {
    		$num = 1;
    	}

    	$ret = PictureModel::where('pic_type', $pic_type)->limit($num)->get();

    	return $this->outPutSucc($ret);

    }
}
